//判断文件是图片还是视频
export const checkFileName = (fileName) => {
  let type = "";
  let suffix = "";
  suffix = fileName?.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
  switch (suffix) {
    case "pdf":
      type = "";
      break;
    case "png":
    case "jpg":
    case "jpeg":
    case "bpg":
    case "webp":
      type = "pic";
      break;
  }
  return type;
};
